﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Share/Default.master" AutoEventWireup="true"
    CodeFile="AdminList.aspx.cs" Inherits="System_Admin_AdminList" Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="body" runat="Server">
    <asp:GridView ID="gv" runat="server" AutoGenerateColumns="false" SkinID="gvList">
        <Columns>
            <asp:TemplateField HeaderText="编辑">
                <ItemTemplate>
                    <img src="../images/edit.gif" title="编辑" />
                    <a href="AdminEdit.aspx?UserId=<%#Eval("Adminid") %>">编辑</a></ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="权限">
                <ItemTemplate>
                    <img src="../images/edit.gif" title="权限" />
                    <a href="/Power/User/Power.aspx?UserId=<%#Eval("Adminid") %>">权限</a></ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="删除">
                <ItemTemplate>
                    <img src="../images/delete.gif" title="编辑" />
                    <a onclick="return confirm('确定删除管理员:<%#Eval("UserName") %>')" href="?UserId=<%#Eval("Adminid") %>">删除</a></ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="UserName" HeaderText="用户名" />
            <asp:BoundField DataField="NickName" HeaderText="昵称" />
            <asp:BoundField DataField="AddTime" HeaderText="注册日期" />
        </Columns>
        
    </asp:GridView>
</asp:Content>
